import http from '@/apis/http.js'

const authTbDatascopeApi = {
  /**
   * 查询当前用户的
   */
  selectById: (id) => {
    let data = {id: id}
    return http.doGet('/authTbDatascope/selectList', data)

  },
  /**
   * 查询列表
   * @param data
   * @returns {*|Promise<AxiosResponse<T>>}
   */
  selectList: (data) => {
    return http.doGet('/authTbDatascope/selectList', data)
  },
  /**
   * 新增
   * @param data
   * @returns {*|Promise<AxiosResponse<T>>}
   */
  addService: (data) => {
    return http.doPost('/authTbDatascope/add', data)
  },
  /**
   * 更新
   * @param data
   * @returns {*|Promise<AxiosResponse<T>>}
   */
  updateService: (data) => {
    return http.doPost('/authTbDatascope/update', data)
  },
  /**
   * 删除
   * @param data
   * @returns {*|Promise<AxiosResponse<T>>}
   */
  deleteListService: (data) => {
    return http.doPost('/authTbDatascope/delete', data)
  }
}
export default authTbDatascopeApi
